using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEngine.UI;

public class ScrillImageItemData
{
    public int Index;
}

public class ScrillImageItem : LoopScrollItem
{

    [SerializeField]
    private TextMeshProUGUI numText;
    
    public override void InitOnce(string itemName)
    {
        base.InitOnce(itemName);
    }

    public override void DataInit(int dataIndex, object data)
    {
        base.DataInit(dataIndex, data);
        if (data != null)
        {
            var tempData = data as ScrillImageItemData;
            numText.text = tempData!=null?tempData.Index.ToString():"";
        }
    }
}
